package myschool.object.student;

public class Boy {
    private String name;
    private int age;

    public void setName(String i) {
        this.name = i;
    }

    public String getNmae() {
        return this.name;
    }

    public void setAge(int i) {
        this.age = i;
    }

    public int getAge() {
        return this.age;
    }

    public void marry(Girl girl) {
        System.out.println(this.name + "和" + girl.getName() + "结婚了");
    }

    public void shout() {
        System.out.println("呼喊");
    }
}
